import { FormRules } from 'element-plus'

const FormValidateRulesScript: FormRules = {
  name: [{ required: true, message: '请输入脚本配置名称', trigger: 'blur' }],
  priority: [{ required: true, message: '请输入当前脚本配置的优先级', trigger: 'blur' }]
}

export const FormValidateRules = {
  [ScriptConfTypeConst.DIR]: FormValidateRulesDir,
  [ScriptConfTypeConst.SCRIPT]: FormValidateRulesScript
}
